﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChatForum.Domain
{
    public interface IRepository
    {
        Guid Insert<T>(T entity) where T : EntityBase;
        bool Modify<T>(T entity) where T : EntityBase;
        void Delete<T>(Guid entityId) where T : EntityBase;
        T GetById<T>(Guid domainBaseId) where T : EntityBase;
        IEnumerable<T> GetAll<T>() where T : EntityBase;
    }
}
